package com.lincong.demo.controller;

import com.lincong.demo.service.impl.DemoServiceImpl;
import com.lincong.mvcframework.annotations.CtAutowired;
import com.lincong.mvcframework.annotations.CtController;
import com.lincong.mvcframework.annotations.CtRequestMapping;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2022-07-03 18:06
 * @Description: DemoController$
 */
@CtController
@CtRequestMapping("/demo")
public class DemoController extends HttpServlet {

	@CtAutowired
	private DemoServiceImpl demoService;


	@CtRequestMapping("/query")
	public String query(HttpServletRequest request,HttpServletResponse response,String name){
		return demoService.get(name);
	}
}
